package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.crm.CrmWebConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.HashMap;

/**
 * <p>
 * 网站配置 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-07-25
 */
@Mapper
@Component
public interface CrmWebConfigMapper extends BaseMapper<CrmWebConfig> {

    @Select("SELECT `name`,logo,icon_logo as iconLogo, copy,phone,ipc,type,title,back_color AS backColor,back_img_url AS backImgUrl,key_word AS keyWord,description,`status`,cause,share_remark as shareRemark,share_content as shareContent FROM `crm_web_config` WHERE id = 1")
    HashMap<String,Object> getLoginConfig();


}
